<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>阳光清新投票系统</title>
    <style>
        /* 基础样式重置 */
        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }

        body {
            font-family: 'Helvetica Neue', 'PingFang SC', 'Microsoft YaHei', sans-serif;
            line-height: 1.6;
            background: linear-gradient(135deg, #f9fbe7 0%, #e3f2fd 100%);
            color: #2c3e50;
            padding: 20px;
            min-height: 100vh;
        }

        .container {
            max-width: 800px;
            margin: 0 auto;
            background: rgba(255, 255, 255, 0.92);
            border-radius: 16px;
            box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
            padding: 40px;
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.3);
        }

        h1 {
            color: #2a6c3d;
            margin-bottom: 25px;
            padding-bottom: 15px;
            border-bottom: 3px solid #8bc34a;
            font-size: 32px;
            font-weight: 700;
            text-align: center;
            position: relative;
        }

        h1::after {
            content: "";
            position: absolute;
            bottom: -3px;
            left: 50%;
            transform: translateX(-50%);
            width: 80px;
            height: 4px;
            background: #ffc107;
            border-radius: 2px;
        }

        /* 错误消息样式 */
        .error-message {
            color: #d32f2f;
            background-color: #ffebee;
            border: 1px solid #ffcdd2;
            padding: 15px;
            border-radius: 8px;
            margin-bottom: 25px;
            font-weight: 600;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
        }

        /* 投票表单样式 */
        .vote-form {
            margin-top: 30px;
        }

        fieldset {
            border: 1px solid #e0e0e0;
            border-radius: 12px;
            padding: 25px;
            margin-bottom: 25px;
            background: rgba(139, 195, 74, 0.05);
        }

        legend {
            font-weight: 700;
            color: #388e3c;
            padding: 0 15px;
            font-size: 20px;
            background: #fff;
            border-radius: 20px;
            border: 2px solid #8bc34a;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
        }

        .choice-item {
            margin: 18px 0;
            padding: 15px 20px;
            background: #f9fbe7;
            border-radius: 10px;
            transition: all 0.3s ease;
            border-left: 4px solid #8bc34a;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
            display: flex;
            align-items: center;
        }

        .choice-item:hover {
            background: #f1f8e9;
            transform: translateY(-3px);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        }

        .choice-item input[type="radio"] {
            margin-right: 15px;
            transform: scale(1.3);
            accent-color: #4caf50;
        }

        .choice-label {
            font-size: 18px;
            color: #2a6c3d;
        }

        /* 按钮通用样式 */
        .vote-btn, .admin-link, .action-btn, .btn {
            display: inline-block;
            padding: 14px 30px;
            border-radius: 50px;
            font-size: 17px;
            cursor: pointer;
            transition: all 0.3s;
            text-align: center;
            text-decoration: none;
            font-weight: 600;
            border: none;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
            background: linear-gradient(135deg, #8bc34a 0%, #4caf50 100%);
            color: white;
            letter-spacing: 0.5px;
            position: relative;
            overflow: hidden;
        }

        .vote-btn::before, .admin-link::before, .action-btn::before, .btn::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
            transition: 0.5s;
        }

        .vote-btn:hover::before, .admin-link:hover::before, .action-btn:hover::before, .btn:hover::before {
            left: 100%;
        }

        .vote-btn:hover, .admin-link:hover, .action-btn:hover, .btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 7px 20px rgba(76, 175, 80, 0.4);
        }

        .vote-btn:active, .admin-link:active, .action-btn:active, .btn:active {
            transform: translateY(1px);
        }

        /* 首页样式 */
        .poll-list {
            list-style: none;
            margin-bottom: 35px;
        }

        .poll-item {
            padding: 18px;
            margin-bottom: 15px;
            background: #f9fbe7;
            border-radius: 12px;
            transition: all 0.3s ease;
            display: flex;
            justify-content: space-between;
            align-items: center;
            border: 1px solid #e8f5e9;
            box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
        }

        .poll-item:hover {
            background: #f1f8e9;
            transform: translateX(8px);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        }

        .poll-link {
            color: #2a6c3d;
            text-decoration: none;
            font-weight: 600;
            flex-grow: 1;
            font-size: 18px;
            display: flex;
            align-items: center;
        }

        .poll-link::before {
            content: "•";
            color: #ffc107;
            font-size: 28px;
            margin-right: 12px;
        }

        .poll-link:hover {
            color: #388e3c;
            text-decoration: none;
        }

        .vote-tag {
            background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
            color: white;
            padding: 6px 14px;
            border-radius: 20px;
            font-size: 14px;
            margin-left: 15px;
            font-weight: 600;
            box-shadow: 0 2px 8px rgba(255, 152, 0, 0.3);
        }

        .no-polls {
            color: #7cb342;
            font-style: italic;
            padding: 20px;
            text-align: center;
            font-size: 18px;
            background: rgba(139, 195, 74, 0.1);
            border-radius: 12px;
        }

        .admin-link {
            margin-top: 25px;
            background: linear-gradient(135deg, #2196f3 0%, #0d47a1 100%);
        }

        .admin-link:hover {
            box-shadow: 0 7px 20px rgba(33, 150, 243, 0.4);
        }

        /* 结果页样式 */
        .results-list {
            list-style: none;
            margin-bottom: 35px;
        }

        .result-item {
            padding: 18px;
            margin-bottom: 15px;
            background: #f9fbe7;
            border-radius: 12px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            transition: transform 0.3s ease;
            border: 1px solid #e8f5e9;
            box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
        }

        .result-item:hover {
            transform: scale(1.02);
            background: #f1f8e9;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        }

        .vote-count {
            background: linear-gradient(135deg, #4caf50 0%, #2a6c3d 100%);
            color: white;
            padding: 8px 16px;
            border-radius: 20px;
            font-size: 15px;
            min-width: 90px;
            text-align: center;
            font-weight: 600;
            box-shadow: 0 2px 8px rgba(42, 108, 61, 0.3);
        }

        .action-buttons {
            display: flex;
            gap: 20px;
            margin-top: 35px;
            flex-wrap: wrap;
            justify-content: center;
        }

        .revote-btn {
            background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
        }

        .revote-btn:hover {
            box-shadow: 0 7px 20px rgba(255, 152, 0, 0.4);
        }

        .home-btn {
            background: linear-gradient(135deg, #2196f3 0%, #0d47a1 100%);
        }

        .home-btn:hover {
            box-shadow: 0 7px 20px rgba(33, 150, 243, 0.4);
        }

        /* ====================== 主页样式 ====================== */
        .home-container {
            max-width: 900px;
            margin: 40px auto;
            background: rgba(255, 255, 255, 0.95);
            border-radius: 25px;
            box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
            padding: 60px 50px;
            text-align: center;
            position: relative;
            overflow: hidden;
            border: 1px solid rgba(255, 255, 255, 0.4);
        }

        .home-container::before {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 8px;
            background: linear-gradient(90deg, #8bc34a, #4caf50, #2a6c3d);
            animation: gradientBar 3s ease infinite;
        }

        @keyframes gradientBar {
            0% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
            100% { background-position: 0% 50%; }
        }

        .home-container h1 {
            color: #2a6c3d;
            font-size: 46px;
            margin-bottom: 40px;
            font-weight: 800;
            padding-bottom: 25px;
            border-bottom: none;
        }

        .home-container h1::after {
            content: "";
            position: absolute;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 120px;
            height: 5px;
            background: linear-gradient(to right, #8bc34a, #ffc107);
            border-radius: 3px;
        }

        .home-description {
            color: #455a64;
            font-size: 20px;
            line-height: 1.8;
            max-width: 700px;
            margin: 0 auto 50px;
            text-align: center;
        }

        .home-actions {
            display: flex;
            justify-content: center;
            gap: 30px;
            flex-wrap: wrap;
            margin-top: 40px;
        }

        .btn-primary {
            background: linear-gradient(135deg, #8bc34a 0%, #4caf50 100%);
            color: white;
            padding: 20px 50px;
            border-radius: 50px;
            font-size: 20px;
            font-weight: 700;
            min-width: 250px;
            box-shadow: 0 10px 25px rgba(76, 175, 80, 0.35);
            transition: all 0.4s;
            position: relative;
            overflow: hidden;
        }

        .btn-primary:hover {
            transform: translateY(-5px);
            box-shadow: 0 15px 30px rgba(76, 175, 80, 0.5);
        }

        .btn-primary::after {
            content: "→";
            margin-left: 12px;
            font-size: 24px;
            transition: transform 0.3s;
        }

        .btn-primary:hover::after {
            transform: translateX(8px);
        }

        .btn-accent {
            background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
            color: white;
            padding: 20px 50px;
            border-radius: 50px;
            font-size: 20px;
            font-weight: 700;
            min-width: 250px;
            box-shadow: 0 10px 25px rgba(255, 152, 0, 0.35);
            transition: all 0.4s;
        }

        .btn-accent:hover {
            transform: translateY(-5px);
            box-shadow: 0 15px 30px rgba(255, 152, 0, 0.5);
        }

        .home-features {
            display: flex;
            justify-content: center;
            gap: 35px;
            margin: 60px 0 40px;
            flex-wrap: wrap;
        }

        .feature-card {
            background: white;
            border-radius: 20px;
            padding: 35px 30px;
            width: 270px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
            transition: all 0.4s;
            border: 2px solid #e8f5e9;
            position: relative;
            overflow: hidden;
        }

        .feature-card::before {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 5px;
            background: linear-gradient(90deg, #8bc34a, #4caf50);
        }

        .feature-card:hover {
            transform: translateY(-12px);
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
            border-color: #8bc34a;
        }

        .feature-icon {
            font-size: 60px;
            margin-bottom: 25px;
            color: #4caf50;
            text-shadow: 0 5px 15px rgba(139, 195, 74, 0.3);
        }

        .feature-title {
            font-size: 24px;
            font-weight: 700;
            margin-bottom: 20px;
            color: #2a6c3d;
        }

        .feature-description {
            color: #546e7a;
            font-size: 17px;
            line-height: 1.7;
        }

        .home-footer {
            margin-top: 60px;
            color: #78909c;
            font-size: 17px;
            border-top: 1px solid #e0e0e0;
            padding-top: 35px;
        }

        .school-logo {
            font-size: 28px;
            font-weight: bold;
            color: #2a6c3d;
            margin-bottom: 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
        }

        .school-logo::before, .school-logo::after {
            content: "✦";
            color: #ffc107;
            font-size: 24px;
        }

        /* ====================== 响应式设计 ====================== */
        @media (max-width: 768px) {
            .container, .home-container {
                padding: 35px 25px;
                margin: 30px 15px;
            }
            
            .home-container h1 {
                font-size: 36px;
            }
            
            .home-description {
                font-size: 18px;
            }
            
            .home-actions, .action-buttons {
                flex-direction: column;
                align-items: center;
                gap: 20px;
            }
            
            .btn, .vote-btn, .admin-link, .action-btn, .btn-primary, .btn-accent {
                width: 100%;
                max-width: 320px;
                text-align: center;
            }
            
            .feature-card {
                width: 100%;
                max-width: 350px;
            }
            
            .poll-item, .result-item {
                flex-direction: column;
                align-items: flex-start;
            }
            
            .vote-tag, .vote-count {
                margin-top: 15px;
                align-self: flex-start;
            }
        }

        @media (max-width: 480px) {
            body {
                padding: 10px;
            }
            
            .container, .home-container {
                padding: 25px 20px;
                border-radius: 15px;
            }
            
            h1, .home-container h1 {
                font-size: 28px;
            }
            
            .btn, .vote-btn, .admin-link, .action-btn, .btn-primary, .btn-accent {
                padding: 16px 25px;
                font-size: 18px;
            }
            
            .feature-card {
                padding: 25px 20px;
            }
            
            .feature-icon {
                font-size: 48px;
            }
            
            .home-container h1::after {
                width: 80px;
            }
        }

        /* 动画效果 */
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .container, .home-container {
            animation: fadeIn 0.6s ease-out forwards;
        }

        .poll-item, .result-item, .choice-item, .feature-card {
            animation: fadeIn 0.5s ease-out forwards;
        }
    </style>
</head>
<body>
    <!-- 示例内容仅用于展示样式效果 -->
    <div class="home-container">
        <h1>阳光投票系统</h1>
        <p class="home-description">一个清新、阳光的在线投票平台，让每一次选择都充满活力！</p>
        
        <div class="home-actions">
            <a href="#" class="btn btn-primary">开始投票</a>
            <a href="#" class="btn btn-accent">查看结果</a>
        </div>
        
        <div class="home-features">
            <div class="feature-card">
                <div class="feature-icon">✓</div>
                <h3 class="feature-title">简单易用</h3>
                <p class="feature-description">直观的操作界面，让您轻松创建和管理投票活动</p>
            </div>
            <div class="feature-card">
                <div class="feature-icon">🔒</div>
                <h3 class="feature-title">安全可靠</h3>
                <p class="feature-description">采用先进加密技术，确保您的投票数据安全</p>
            </div>
            <div class="feature-card">
                <div class="feature-icon">📊</div>
                <h3 class="feature-title">实时统计</h3>
                <p class="feature-description">即时生成可视化数据，清晰展示投票结果</p>
            </div>
        </div>
        
        <div class="home-footer">
            <div class="school-logo">阳光学院投票系统</div>
            <p>© 2023 阳光投票系统 - 让每一次选择都充满阳光</p>
        </div>
    </div>
</body>
</html>